<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <br/>

            <h3 class="title">Atualizar Proprietário</h3>

            <h:form id="proprietarioForm" enctype="multipart/form-data">
                
                <c:set target="#{managerLayout}" property="habilitaEditarImagem" value="#{true}"/>

                <ui:include src="proprietarioform.xhtml"/>

                <div class="buttonAction">
                    <p:commandButton value="Salvar" icon="ui-icon-disk"
                                     update="@form"
                                     actionListener="#{managerProprietario.atualizar()}"
                                     styleClass="ui-priority-primary" />

                    <p:button href="visualizarproprietario.xhtml?vProprietario=#{managerProprietario.proprietario.id}" value="Cancelar" icon="ui-icon-trash" />
                </div>
            </h:form>

            <p:dialog id="modalDialog" widgetVar="dlgProprietario" height="510" header="Cadastrar cônjuge"
                      modal="true" styleClass="container_24 clearfix" 
                      closeOnEscape="true" closable="false" resizable="false">

                <ui:include src="conjugedialogform.xhtml"/>

            </p:dialog>

        </ui:define>
    </ui:composition>

</html>
